<!DOCTYPE html><html><head>  

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />  

<title>Google Maps Multiple Markers</title>  

<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head> <body> <div id="map" style="width: 500px; height: 400px;"></div>

<script type="text/javascript">

	var locations = [
	       ['InterContinental - New York Times Square',40.75856,-73.98891,0],
	       ['New York Inn',40.76035,-73.98753,1],
	       ['Westin New York at Times Square',40.75756,-73.98849,2],
	       ['Econo Lodge Times Square',40.76042,-73.98756,3],
	       ['Manhattan Times Square Suites',40.75992,-73.99021,4],var map = new google.maps.Map(document.getElementById('map'), {zoom: 4,center: new google.maps.LatLng(40.75905,-73.98844),mapTypeId: google.maps.MapTypeId.ROADMAP});var infowindow = new google.maps.InfoWindow();var marker, i;for (i = 0; i < locations.length; i++) {marker = new google.maps.Marker({position: new google.maps.LatLng(locations[i][1], locations[i][2]),map: map});google.maps.event.addListener(marker, 'click', (function(marker, i) {return function() {infowindow.setContent(locations[i][0]);infowindow.open(map, marker);}})(marker, i));}</script></body></html>